Optimal. Leaf size=63 \[ x \text {sech}^{-1}(a x)^2-\frac {4 \text {sech}^{-1}(a x) \text {ArcTan}\left (e^{\text {sech}^{-1}(a x)}\right )}{a}+\frac {2 i \text {PolyLog}\left (2,-i e^{\text {sech}^{-1}(a x)}\right )}{a}-\frac {2 i \text {PolyLog}\left (2,i e^{\text {sech}^{-1}(a x)}\right )}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.833, Rules used = {6414, 5526,
4265, 2317, 2438} \begin {gather*} -\frac {4 \text {sech}^{-1}(a x) \text {ArcTan}\left (e^{\text {sech}^{-1}(a x)}\right )}{a}+\frac {2 i \text {Li}_2\left (-i e^{\text {sech}^{-1}(a x)}\right )}{a}-\frac {2 i \text {Li}_2\left (i e^{\text {sech}^{-1}(a x)}\right )}{a}+x \text {sech}^{-1}(a x)^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2317
Rule 2438
Rule 4265
Rule 5526
Rule 6414
Rubi steps
\begin {align*} \int \text {sech}^{-1}(a x)^2 \, dx &=-\frac {\text {Subst}\left (\int x^2 \text {sech}(x) \tanh (x) \, dx,x,\text {sech}^{-1}(a x)\right )}{a}\\ &=x \text {sech}^{-1}(a x)^2-\frac {2 \text {Subst}\left (\int x \text {sech}(x) \, dx,x,\text {sech}^{-1}(a x)\right )}{a}\\ &=x \text {sech}^{-1}(a x)^2-\frac {4 \text {sech}^{-1}(a x) \tan ^{-1}\left (e^{\text {sech}^{-1}(a x)}\right )}{a}+\frac {(2 i) \text {Subst}\left (\int \log \left (1-i e^x\right ) \, dx,x,\text {sech}^{-1}(a x)\right )}{a}-\frac {(2 i) \text {Subst}\left (\int \log \left (1+i e^x\right ) \, dx,x,\text {sech}^{-1}(a x)\right )}{a}\\ &=x \text {sech}^{-1}(a x)^2-\frac {4 \text {sech}^{-1}(a x) \tan ^{-1}\left (e^{\text {sech}^{-1}(a x)}\right )}{a}+\frac {(2 i) \text {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^{\text {sech}^{-1}(a x)}\right )}{a}-\frac {(2 i) \text {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^{\text {sech}^{-1}(a x)}\right )}{a}\\ &=x \text {sech}^{-1}(a x)^2-\frac {4 \text {sech}^{-1}(a x) \tan ^{-1}\left (e^{\text {sech}^{-1}(a x)}\right )}{a}+\frac {2 i \text {Li}_2\left (-i e^{\text {sech}^{-1}(a x)}\right )}{a}-\frac {2 i \text {Li}_2\left (i e^{\text {sech}^{-1}(a x)}\right )}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 90, normalized size = 1.43 \begin {gather*} \frac {i \left (\text {sech}^{-1}(a x) \left (-i a x \text {sech}^{-1}(a x)+2 \log \left (1-i e^{-\text {sech}^{-1}(a x)}\right )-2 \log \left (1+i e^{-\text {sech}^{-1}(a x)}\right )\right )+2 \text {PolyLog}\left (2,-i e^{-\text {sech}^{-1}(a x)}\right )-2 \text {PolyLog}\left (2,i e^{-\text {sech}^{-1}(a x)}\right )\right )}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.29, size = 183, normalized size = 2.90
method | result | size |
derivativedivides | \(\frac {\mathrm {arcsech}\left (a x \right )^{2} a x +2 i \mathrm {arcsech}\left (a x \right ) \ln \left (1+i \left (\frac {1}{a x}+\sqrt {\frac {1}{a x}-1}\, \sqrt {1+\frac {1}{a x}}\right )\right )-2 i \mathrm {arcsech}\left (a x \right ) \ln \left (1-i \left (\frac {1}{a x}+\sqrt {\frac {1}{a x}-1}\, \sqrt {1+\frac {1}{a x}}\right )\right )+2 i \dilog \left (1+i \left (\frac {1}{a x}+\sqrt {\frac {1}{a x}-1}\, \sqrt {1+\frac {1}{a x}}\right )\right )-2 i \dilog \left (1-i \left (\frac {1}{a x}+\sqrt {\frac {1}{a x}-1}\, \sqrt {1+\frac {1}{a x}}\right )\right )}{a}\) | \(183\) |
default | \(\frac {\mathrm {arcsech}\left (a x \right )^{2} a x +2 i \mathrm {arcsech}\left (a x \right ) \ln \left (1+i \left (\frac {1}{a x}+\sqrt {\frac {1}{a x}-1}\, \sqrt {1+\frac {1}{a x}}\right )\right )-2 i \mathrm {arcsech}\left (a x \right ) \ln \left (1-i \left (\frac {1}{a x}+\sqrt {\frac {1}{a x}-1}\, \sqrt {1+\frac {1}{a x}}\right )\right )+2 i \dilog \left (1+i \left (\frac {1}{a x}+\sqrt {\frac {1}{a x}-1}\, \sqrt {1+\frac {1}{a x}}\right )\right )-2 i \dilog \left (1-i \left (\frac {1}{a x}+\sqrt {\frac {1}{a x}-1}\, \sqrt {1+\frac {1}{a x}}\right )\right )}{a}\) | \(183\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \operatorname {asech}^{2}{\left (a x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int {\mathrm {acosh}\left (\frac {1}{a\,x}\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________